package com.rk.admin.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    @ApiModelProperty(hidden = true)
    private Integer uid;

    @ApiModelProperty(value = "用户名",required = true,dataType = "String",example = "18191691639")
    private String username;
    @ApiModelProperty(value = "用户昵称",required = true,dataType = "String",example = "rk")
    private String nickname;
    @ApiModelProperty(value = "密码",required = true,dataType = "String",example = "123456")
    private String password;

    @ApiModelProperty(value = "角色:2、超级管理员 1、中级管理员  0、初级管理员",required = true,dataType = "int",example = "1")
    private Integer role;

    @ApiModelProperty(hidden = true)
    private Date creattime;

}
